<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org/extras/spring-security">
<head>
<meta charset="UTF-8"/>
<title>教评系统-注册</title>
<link rel="shortcut icon" th:href="@{../images/favicon.ico}"/>
<link rel="stylesheet" th:href="@{/layui/css/layui.css}"/>
<link rel="stylesheet" th:href="@{/css/login.css}"/>
<script th:src="@{/layui/layui.js}"></script>
<script th:src="@{/js/jquery-3.6.0.min.js}"></script>
</head>
<body>
   <div class="layui-main">
       <p style="color: red" th:text="${mess}" th:if="${ not #strings.isEmpty(mess)}"></p>
   <header class="layui-elip">用户注册</header>
    <div class="layui-col-md6">
      <div class="layui-card">
          <div class="layui-card-body">
            <form class="layui-form" action="/Teaching_evaluation_system/User_register" method="post">
            <div class="layui-form-item">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-block">
                    <input type="text" id="user" name="user" required  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">密码</label>
                <div class="layui-input-inline">
                  <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">名字</label>
                <div class="layui-input-block">
                    <input type="text" id="name" name="name" required  lay-verify="required" placeholder="请输入名字" autocomplete="off" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">邮箱地址</label>
                <div class="layui-input-block">
                    <input type="text" id="email" name="email" required  lay-verify="required" placeholder="请输入邮箱地址" autocomplete="off" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">工号</label>
                <div class="layui-input-block">
                    <input type="text" id="account" name="account" required  lay-verify="required" placeholder="请输入工号" autocomplete="off" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-block">
                  <input type="radio" name="sex" value="男" title="男"/>
                  <input type="radio" name="sex" value="女" title="女" checked/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">年龄</label>
                <div class="layui-input-block">
                    <input type="text" name="age" required  lay-verify="required" placeholder="年龄" autocomplete="off" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">爱好</label>
                <div class="layui-input-block">
                  <textarea name="lable" placeholder="爱好" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
            <div class="layui-input-block">
              <button type="submit" class="layui-btn lay-submit" lay-filter="register">立即提交</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
            </div>
        </form>
          </div>
      </div>
    </div>
  </div>
</body>
</html>